package com.itrip.dao;

import cn.itrip.beans.domain.ItripUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface ItripUserMapper {
    int deleteByPrimaryKey(Long id);

    int insert(ItripUser record);

    ItripUser selectByPrimaryKey(Long id);

    List<ItripUser> selectAll();

    int updateByPrimaryKey(ItripUser record);

    ItripUser getlogin(@Param("name") String name, @Param("password")String password);
    int selectByid();//获取最新注册的信息
    void insertItripUser(ItripUser user);//注册
    List<ItripUser> getItripUserListByMap(Map<String, Object> param);
    int updateItripUser(String userCode);
    ItripUser selectByUserCode(String userCode);
}